﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace NoteHelper.Model
{
	public class ArticleType
	{
		public ArticleType()
		{
			BizCode = "";
			CreateTime = DateTime.Now;
		}

		[DisplayName("类型ID")]
        [MinInt(0)]
		public int ObjectID { get; set; }

		[DisplayName("类型名称")]
        public string ChName { get; set; }

		[DisplayName("类型编码")]
        [Required(AllowEmptyStrings = true)]
        public string BizCode { get; set; }

		[DisplayName("创建时间")]
        [Required()]
		public DateTime CreateTime { get; set; }

		[DisplayName("对应文章")]
		public virtual IList<ArticleAttribute> Articles { get; set; }
	}
}
